package com.heima.pojo;
public class Student {
    private int id;
    private String name;
    public Student(){
        System.out.println("1. 无参构造器。。。");
    }
    public void init(){
        System.out.println("3. init初始化。。。");
    }
    public void distory(){
        System.out.println("5. distory  对象销毁");
    }
    public int getId() {
        System.out.println("4. 对象调用 getId");
        return id;
    }
    public void setId(int id) {
        System.out.println("2. set id 赋值");
        this.id = id;
    }
    public String getName() {return name;}
    public void setName(String name) {this.name = name;}
}